
# 一、(1)C  (2)C (3)A (4)D (5)B (6)D (7)C (8)A
# def f():
#     print(x)
#     x = 20+1
# f()



# 二、
# (7)
# a = 3
# b = 4
# def fun(x,y):
#     b = 5
#     print(x +y,b)
# fun(a,b)

# (8)
# def fun(x):
#     a = 3
#     a += x
#     return (a)
# k = 2
# m = 1
# n = fun(k)
# m = fun(m)
# print(n,m)

# (9)
# def fun(x,y):
#     global b
#     b = 3
#     c =a + b
#     return c
# a = 1
# b = 2
# c = fun(a,b)
# print(a,b,c)

# (10)
# def outer():
#     a = 1
#     def inner():
#         nonlocal a
#         a = 2
#     print(a)
# outer()

